package concept.misc;

import java.io.File;
import java.net.URL;

public class FilePathLab
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		File f = new File("src/main/resources/log4j.xml");
		System.out.println(f.exists());
		File ff = new File("log4j.xml");
		System.out.println(ff.exists());
		File fff = new File("/log4j.xml");
		System.out.println(fff.exists());
		URL url = ClassLoader.getSystemResource("log4j.xml");
		File ffff = new File(url.getFile());
		System.out.println(url.getFile()+" exists? "+ffff.exists());
		System.out.println(url.getPath()+" exists? "+ffff.exists());
	}

}
